// This is a manifest file that'll be compiled into including all the files listed below.
// Add new JavaScript/Coffee code in separate files in this directory and they'll automatically
// be included in the compiled file accessible from http://example.com/assets/application.js
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
// the compiled file.
//
//= require jquery
//= require jquery_ujs
//= require_tree .

// about dialog, gets triggered from application layout template
function aboutme() {
  var $dialog = $('<div></div>')
      .html('FoodEx is written and maintained by The Delivery Dudes, a dynamic SD&D team shooting for the sky.\
          <p>Team:\
          <p>-Ziv Kennan\
          <p>-Tim McMullan\
          <p>-Lucas Santoro\
          <p>-Dan Vegeto\
          ')
      .dialog({
      autoOpen: false,
      title: 'About the FoodEx Team',
      modal: true,
      resizable: false,
      draggable: false
  });
  $dialog.dialog('open');
}

// bind about dialog to about link
$(document).ready(function() {
   $("#ablink").click(aboutme);
});
